package com.club.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.club.entity.Activity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * 活动Mapper接口
 */
@Mapper
public interface ActivityMapper extends BaseMapper<Activity> {
    
    /**
     * 根据社团ID查询活动
     */
    List<Activity> selectByClubId(Long clubId);
    
    /**
     * 获取最近的活动
     */
    List<Activity> selectRecentActivities(Integer limit);
    
    /**
     * 搜索活动
     */
    List<Activity> searchActivities(String keyword);
}